import Layout from '@/layout/index'

export default [
  {
    path: '/users',
    component: Layout,
    meta: {
      title: '用户管理',
      icon: 'user',
      auth: 'User'
    },
    children: [
      {
        path: '',
        name: 'users',
        meta: {
          title: '用户管理',
          auth: 'User'
        },
        component: () => import('../views/users/index')
      },
    ]
  },
  {
    path: '/zhaopin',
    component: Layout,
    meta: {
      title: '招聘',
      icon: 'attract',
      auth: 'Zhaopin'
    },
    children: [
      {
        path: '',
        name: 'Zhaopin',
        meta: {
          title: '招聘信息',
          auth: 'Zhaopin'
        },
        component: () => import('../views/zhaopin/index')
      },
      {
        path: 'edit/:id',
        name: 'ZhaopinEdit',
        meta: {
          title: '招聘信息',
          hidden: true,
          auth: 'Zhaopin'
        },
        component: () => import('../views/zhaopin/index-edit')
      },
      {
        path: 'company',
        name: 'ZhaopinCompany',
        meta: {
          title: '公司管理',
          auth: 'Company'
        },
        component: () => import('../views/zhaopin/company')
      },
      {
        path: 'message',
        name: 'ZhaopinMessage',
        meta: {
          title: '求职管理',
          auth: 'ZhaopinMessage'
        },
        component: () => import('../views/zhaopin/message')
      },
    ]
  },
  {
    path: '/news',
    component: Layout,
    meta: {
      title: '新闻资讯',
      icon: 'document',
      auth: 'News'
    },
    children: [
      {
        path: '',
        name: 'News',
        meta: {
          title: '文章管理',
          auth: 'News'
        },
        component: () => import('../views/news/index')
      },
      {
        path: 'edit',
        name: 'NewsEdit',
        meta: {
          title: '文章编辑',
          active: 'News',
          hidden: true,
          auth: 'News'
        },
        component: () => import('../views/news/form')
      },
      {
        path: 'category',
        name: 'NewsCategory',
        meta: {
          title: '分类管理',
          auth: 'NewsCategory'
        },
        component: () => import('../views/news/category')
      },
    ]
  },
  // {
  //   path: '/area',
  //   component: Layout,
  //   meta: {
  //     title: '地区管理',
  //     icon: 'map-location'
  //   },
  //   children: [
  //     {
  //       path: '',
  //       name: 'Area',
  //       meta: {
  //         title: ''
  //       },
  //       component: () => import('../views/area/index')
  //     },
  //   ]
  // },
  {
    path: '/school',
    component: Layout,
    meta: {
      title: '学校管理',
      icon: 'office-building',
      auth: 'School'
    },
    children: [
      {
        path: '',
        name: 'School',
        meta: {
          title: '',
          auth: 'School'
        },
        component: () => import('../views/school/index')
      },
    ]
  },
  {
    path: '/edu',
    component: Layout,
    meta: {
      title: '学历文凭',
      icon: 'notebook-1',
      auth: 'Edu'
    },
    children: [
      {
        path: '',
        name: 'Edu',
        meta: {
          title: '我的招生',
          auth: 'Edu'
        },
        component: () => import('../views/edu/index')
      },
      {
        path: 'edit',
        name: 'EduEdit',
        meta: {
          title: '招生需求',
          hidden: true,
          active: 'Edu',
          auth: 'Edu'
        },
        component: () => import('../views/edu/form')
      },
    ]
  },
  {
    path: '/cert',
    component: Layout,
    meta: {
      title: '资格证书',
      icon: 'trophy-1',
      auth: 'Cert'
    },
    children: [
      {
        path: '',
        name: 'Cert',
        meta: {
          title: '我的招生',
          auth: 'Cert'
        },
        component: () => import('../views/cert/index')
      },
      {
        path: 'edit',
        name: 'CertEdit',
        meta: {
          title: '招生需求',
          hidden: true,
          active: 'Cert',
          auth: 'Cert'
        },
        component: () => import('../views/cert/form')
      },
    ]
  },
  {
    path: '/student',
    component: Layout,
    meta: {
      title: '学员管理',
      iconfont: 'student',
      auth: 'Student'
    },
    children: [
      {
        path: '',
        name: 'Student',
        meta: {
          title: '学员管理',
          auth: 'Student'
        },
        component: () => import('../views/student/index')
      },
    ]
  }
]
